package com.example.demos.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.processing.Generated;
@RestController
@RequestMapping("/books")
public class BookController {
    @GetMapping
    public String getBook() {
        // TODO: implement logic to get book by id
        System.out.println("serving book with id 1");
        return "Book with id 1";
    }
}
